xxxxxxxxxx
28
let rotateAmount = 100;
let speed = 2;
function setup() {
createCanvas(400, 400);
textAlign(CENTER, CENTER)
//textSize(2)
angleMode(DEGREES)
}
function draw() {
background("white");
fill("blue")
push()
translate(0, 200)
rotate(rotateAmount)
textSize(20)
text("Rotate", 200, 160)
pop()
rotateAmount = rotateAmount + speed
}